class LoginEntity {
  String? token;
  dynamic? userId;
  String? userCode;
  String? userName;
  String? userAccount;
  dynamic? organizationId;
  String? organizationCode;
  String? organizationName;
  String? enterpriseName;
  String? phoneNumber;
  List<dynamic>? permissionList;
  List<dynamic>? menuPermissionCode;

  LoginEntity(
      {this.token,
        this.userId,
        this.userCode,
        this.userName,
        this.userAccount,
        this.organizationId,
        this.organizationCode,
        this.organizationName,
        this.enterpriseName,
        this.phoneNumber,
        this.permissionList,
        this.menuPermissionCode});

  LoginEntity.fromJson(Map<String, dynamic> json) {
    token = json['satoken'];
    userId = json['userId'];
    userCode = json['userCode'];
    userName = json['userName'];
    userAccount = json['userAccount'];
    organizationId = json['organizationId'];
    organizationCode = json['organizationCode'];
    organizationName = json['organizationName'];
    enterpriseName = json['enterpriseName'];
    phoneNumber = json['phoneNumber'];
    permissionList = json['permissionList'];
    menuPermissionCode = json['menuPermissionCode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['satoken'] = this.token;
    data['userId'] = this.userId;
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['userAccount'] = this.userAccount;
    data['organizationId'] = this.organizationId;
    data['organizationCode'] = this.organizationCode;
    data['organizationName'] = this.organizationName;
    data['enterpriseName'] = this.enterpriseName;
    data['phoneNumber'] = this.phoneNumber;
    data['permissionList'] = this.permissionList;
    data['menuPermissionCode'] = this.menuPermissionCode;
    return data;
  }
}
